/**
 * @description types
 * @author Zhangbin
 */
import { RouteRecordRaw } from 'vue-router'

// userinfo
export type UserInfoType = {
  token: string;
  id: number | string;
  [propName: string]: string | number | string[]
}

// router
export type RouterType = RouteRecordRaw[]
export type RouterStateType = {
  asyncRoutes: RouterType;
  routes: RouterType
}

//setting
export type SettingType = {
  palettes: string[];
  themeMode: {[key: string]: string};
  selectedPalette: string
  selectedMode: string
}
export type SettingKeyType = {
  palette: string,
  mode: string
}